<?php
class BaseAdmin extends Base
{
	public function __construct()
	{
		parent::__construct();
		if (empty($_SESSION['admin'])){
			header("Location: admin_login.html");
		}
		$admin = new admin_model_admin();
		if (!$admin->permissions(StaticVariable::$module, StaticVariable::$controller)){
			$this->toos()->msgbox("权限不够");
		}
	}
}
?>